/* ==== ANIMACE PRODUKTU ==== */
@keyframes initialFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ==== PRODUKTY NA HLAVNÍ STRÁNCE ==== */
#products-1 .product {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background-color: #ffffff;
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;

    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
#products-1 .product.visible {
    visibility: visible;
    position: relative;
}
#products-1 .product.initial-fade-in {
    animation: initialFadeIn 2s ease-out forwards;
}
#products-1 .product.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}
#products-1 .product.slide-out-down {
    animation: slideOutDown 0.8s ease forwards;
}
#products-1 .product:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
#products-1 .product .image img {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
#products-1 .product .image img:hover {
    transform: scale(1.02);
}
#products-1 .product .name span {
    color: #222;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}
#products-1 .product .name span:hover {
    color: #555;
}
#products-1 .product .availability {
    color: #4CAF50;
    font-size: 0.95rem;
    font-weight: 500;
}
#products-1 .product .p-code {
    color: #888;
    font-size: 0.85rem;
}
#products-1 .product .price-final strong {
    font-size: 1.4rem;
    color: #3381C4;
    font-weight: 600;
}
#products-1 .product .price-additional {
    font-size: 0.9rem;
    color: #777;
}
#products-1 .product .p-in-in {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#products-1 .product .btn-cart {
    background-color: #222;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
#products-1 .product .btn-cart:hover {
    background-color: #3381C4;
}
#products-1 .product .quantity input.amount {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 1rem;
    width: 60px;
    text-align: center;
}
#products-1 .product .increase,
#products-1 .product .decrease {
    background: none;
    border: 1px solid #ccc;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#products-1 .product .increase:hover,
#products-1 .product .decrease:hover {
    background-color: #f0f0f0;
}

#products-1 .product::before {
    content: "👀 Mrkněte";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3381C4; /* brand modrá */
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    animation:
        badgeFadeIn 1.5s ease-out forwards,
        badgePulse 2.5s infinite ease-in-out 1.5s; /* Pulse začne po fade-in */
}

@keyframes badgeFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 0.95; transform: scale(1); }
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.95; }
}

/* === Responsive badge pro mobil === */
@media (max-width: 480px) {
    #products-1 .product::before {
        font-size: 0.75rem;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
}
